An Abstract Concurrent Machine for Rewriting

نویسندگان

  • Nachum Dershowitz
  • Naomi Lindenstrauss
چکیده

1 I n t r o d u c t i o n Term rewriting is a powerful computat ional paradigm. On the one hand, it has the full power of Turing machines, because they can be formulated as rewrite systems, and on the other hand, i t lends itself to parallel execution, since different subterms of a term can be rewrit ten concurrently. A rewrite rule over a set of (first-order) terms is an ordered pair of terms, which we write as l -* r. A rewr/te system is a finite set of rules. Given a rewrite system R, we say that a term s rewrites to a term t at some position p, denoted by s ~ R t, if there is a rule I ~ r in R and a subst i tut ion a , such that the subterm of s at position p is la and t is s with that subterm replaced by r a . The position at which a rewrite applies is called a redez. A term is said to be in normal form if no rewrite rule can be applied to it. It should be stressed that any variables in s remain uninstant ia ted by rewriting. We also consider a more general operation, known as "narrowing", in which a rule is applied if i ts left-hand side unifies with any subterm of s. More precisely, we say tha t a term s narrows to a term t (at position p), denoted s ~'*R t, if there is a rule l ~ r in R such that a is the most general unifier of the subterm of s (at p) with l, and t is the result of applying a to s and then replacing that subterm la of sa with ra . If s a is different from s, we will call it a proper narrowing. We assume tha t unification always t reats variables in rules as dist inct from those in the term. In this paper , we show how different rewriting and narrowing strategies can be implemented on an abst ract concurrent machine. The way our abstract machine works for rewriting is tha t

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Abstract Machine for Concurrent Modular Systems: CHARM

Corradini, A., U. Montanari and F. Rossi, An abstract machine for concurrent modular systems: CHARM, Theoretical Computer Science 122 (1994) 165-200. CHARM (for concurrency and hiding in an abstract rewriting machine) is an abstract machine which allows one to model naturally the behavior of distributed systems consisting of a collection of processes-sharing variables. CHARM is equipped with a ...

متن کامل

KRAM—Extended Report

Term rewriting proved to be a simple, uniform and powerful computational paradigm. Rewrite rules independently match and apply anywhere, unconstrained by the context. Rewriting is particularly appealing for defining truly concurrent systems, since rewrite rules can apply in parallel. Unfortunately, there is an inherent impediment in using term rewriting for defining concurrent systems or progra...

متن کامل

Semantics of Concurrent Logic Programming as Uniform Proofs

We describe LC , a formalism based on the proof theory of linear logic, whose aim is to specify concurrent computations and whose language restriction (as compared to other linear logic language) provides a simpler operational model that can lead to a more practical language core. The LC fragment is proveded to be an abstract logic programming language, that is any sequent can be derived by uni...

متن کامل

Concurrent Logic Programming as Uniform Linear Proofs

We describe a formalism based on the proof theory of linear logic, whose aim is to specify concurrent computations and whose language restriction (as compared to other linear logic languages) provides a simpler operational model that can lead to a more practical language core. The fragment is proved to be an abstract logic programming language, that is any sequent can be derived by uniform proo...

متن کامل

Concurrent Turing Machines as Rewrite Theories

We define Concurrent Turing Machines (CTMs) as Turing machines with Petri nets as finite control. This leads to machines with arbitrary many tape heads, thus subsuming any class of (constant) khead Turing machines. Concurrent Turing machines correspond to a class of multiset rewriting systems. The definition of a CTMs as a rewrite theory avoids the need for encoding multisets as words and using...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1990